﻿using Common.CustomAtteibutes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Parylene_CVD.Model.DModels
{
    // 镀膜记录表实体类
    [Table("Record")]
    [PrimaryKey("RecordID", autoIncrement = true)]
    public class Record
    {
        public int RecordID { get; set; }
        public int DeviceID { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public string RecordingFilePath { get; set; } = string.Empty;
        public string DataFilePath { get; set; } = string.Empty;

        public Record() { }

        public Record(int deviceID, DateTime startTime, DateTime endTime, string recordingFilePath, string dataFilePath)
        {
            DeviceID = deviceID;
            StartTime = startTime;
            EndTime = endTime;
            RecordingFilePath = recordingFilePath;
            DataFilePath = dataFilePath;
        }

        public Record(int recordID, int deviceID, DateTime startTime, DateTime endTime, string recordingFilePath, string dataFilePath)
        {
            RecordID = recordID;
            DeviceID = deviceID;
            StartTime = startTime;
            EndTime = endTime;
            RecordingFilePath = recordingFilePath;
            DataFilePath = dataFilePath;
        }
    }
}
